package com.weihuachao.repair;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

/**
 * Created by Virgo on 2016/8/4.
 */
public class WorkDetailsActivity extends Activity {
    private TextView titletv;
    private TextView texttv;
    private Button backbo;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_workdetails);
        titletv = (TextView) findViewById(R.id.title_workdetails);
        texttv = (TextView) findViewById(R.id.text_workdetails);
        backbo = (Button) findViewById(R.id.bakc_workdetails);
        Intent intent = getIntent();
        titletv.setText(intent.getStringExtra("worktitle"));
        texttv.setText(intent.getStringExtra("worktexr"));
        backbo.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                finish();
            }
        });
    }
}
